/**$Licence:
 *   Use this however/wherever you like, just don't blame me if it breaks anything.
 *   Copyright (C) 2008 - 2013 xingsheng.zhu@gmail.com All rights reserved.
 */
package com.game.command;

import org.apache.mina.core.session.IoSession;

import com.blazemina.CommandContext;
import com.blazemina.command.Command;
import com.blazemina.config.annotation.CommandMapping;
import com.blazemina.message.Message;

/**
 * @author JackChu
 * @version 1.0.0 2013-2-25 下午3:55:08
 */
public class UserCommand implements Command {

	@CommandMapping(command = "u_login")
	public void login(CommandContext context) {
		Message message = context.getMessage();
		IoSession session = context.getSession();
		message.setCommand("u_login");
		message.setData("u_login");
		session.write(message);
	}

	@CommandMapping(command = "u_create")
	public void create(CommandContext context) {
		Message message = context.getMessage();
		IoSession session = context.getSession();
		message.setCommand("u_create");
		message.setData("u_create");
		session.write(message);
	}

}
